import Cookies from 'js-cookie'

// const TokenKey = 'vue_admin_template_token'
const TokenKey = 'educloud_cms_token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export  function getTokenByName(name){
  return Cookies.get(name)
}
export function setTokenByName(token_name,token) {
  return Cookies.set(token_name, token)
}

export function removeTokenByName(token_name) {
  return Cookies.remove(token_name)
}
